-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add validator url / network tracking in analytics #343
Conversation
aforaleka
commented
May 8, 2024
•
edited
Loading
edited
src/commonMain/kotlin/exchange.dydx.abacus/state/manager/V4StateManagerAdaptor.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/NetworkSupervisor.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/NetworkSupervisor.kt
Outdated
Show resolved
Hide resolved
d446660
to
e6f1313
Compare
99339db
to
366f438
Compare
366f438
to
1eefcde
Compare
5ec5436
to
7151ce6
Compare
7151ce6
to
f27e800
Compare
src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/ConnectionStats.kt
Outdated
Show resolved
Hide resolved
val interval = if (indexerTime != null) { | ||
( | ||
Clock.System.now().toEpochMilliseconds() | ||
.toDouble() - indexerTime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we using Doubles for epoch milliseconds? Shouldn't we just keep them as Longs to avoid loss of precision?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errr not sure if there's reason behind it -- can switch to Long here during the subtraction but maybe need to keep them as Doubles when sending to amplitude for consistency?
val requiredParams = apiStateParams() | ||
val mergedParams = params?.let { ParsingHelper.merge(params.filterNotNull(), requiredParams) } ?: requiredParams | ||
val paramsAsString = this.jsonEncoder.encode(mergedParams) | ||
this.ioImplementations.threading?.async(ThreadingType.main) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we running this on main thread?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnqh can u provide context T_T? i dont think web actually does anything different
de5de5e
to
ab3a5a5
Compare